package com.cplh.sharding.demo.service;

import com.cplh.sharding.demo.entry.Orders;
import com.cplh.sharding.demo.mapper.OrdersMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author: kangzhijin
 * @since: 2022/10/11
 * @version: 1.0
 * @description:
 **/
@Service
public class OrdersService {

    @Resource
    private OrdersMapper orderMapper ;

    public int save(Orders order) {
        return orderMapper.saveOrders(order) ;
    }

    public List<Orders> queryOrdersMapperNormal(Map<String, Object> params) {
        return orderMapper.queryOrders(params) ;
    }

    public List<Orders> queryOrdersMapperPager(Map<String, Object> params) {
        return orderMapper.queryOrders(params) ;
    }

}
